require "migration_helpers"
class CreateAudiences < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :audiences do |t|
      t.column :audience_type_id, :integer
      t.column :meta_id, :integer
    end
    foreign_key(:audiences, :audience_type_id, :audience_types)
    foreign_key(:audiences, :meta_id, :metas)
  end

  def self.down
    drop_table :audiences
  end
end
